#ifndef OUTPUTBUFFERSTREAM_H
#define OUTPUTBUFFERSTREAM_H
#include "outputstream.h"
#include<cstdlib>

#define BUFFER 16384

class outputbufferstream:public outputstream
{
	int fd;
	int wcount;
	int *writeBuf;
	public:
	outputbufferstream()
	{
		fd = -1;
		wcount = 0;
		writeBuf = NULL;
	}

	virtual void create(const char* fileName);
	virtual void  write_s(int data);
	virtual void close_s();

	virtual ~outputbufferstream(){};
};

#endif
